package com.anyisn.puremvc.as3.multicore.patterns.command
{
	import mx.controls.Alert;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import com.anyisn.anyflickr.shell.model.vo.ErrorVO;
	public class ErrorCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void {
			var error:ErrorVO = notification.getBody() as ErrorVO;
			var text:String = error.details;
			Alert.show(text, error.type, Alert.OK);
		}
	}
}